<template>
    
</template>

<script>
export default {
    name:"Home",
    methods:{
        sub(){
            this.$store.commit("decrement");
        },
        addGood(){
            // this.$store.commit("addGood",  {id:108, name:"熊猫蚊香",price:12.9, num:67});
            this.$store.commit({
                type:"addGood",
                newGood:{
                    id:108, 
                    name:"熊猫蚊香",
                    price:12.9, 
                    num:67
                }
            });
        },
    }
}
</script>